package com.ssh.action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.ssh.service.UserService;

public class UserAction {
	private UserService userService;

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public String getAllEmploy() {
		ActionContext context = ActionContext.getContext();
		Map<String, Object> map = (Map<String, Object>) context.get("request");
		map.put("list", userService.getUser());
		return "success";
	}
}
